<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>pyzy: PyZy::Variant Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">pyzy
   &#160;<span id="projectnumber">0.0.8</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespacePyZy.html">PyZy</a>      </li>
      <li class="navelem"><a class="el" href="classPyZy_1_1Variant.html">Variant</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">PyZy::Variant Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<!-- doxytag: class="PyZy::Variant" -->
<p><a class="el" href="classPyZy_1_1Variant.html" title="Variant class to handle various type of value.">Variant</a> class to handle various type of value.  
 <a href="classPyZy_1_1Variant.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="Variant_8h_source.html">Variant.h</a>&gt;</code></p>

<p><a href="classPyZy_1_1Variant-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPyZy_1_1Variant.html#acede29e7fcb4551d91848f449d8da02a">Type</a> { <a class="el" href="classPyZy_1_1Variant.html#acede29e7fcb4551d91848f449d8da02aae64389eb8f198fc7453b6385e6d97677">TYPE_NULL</a>, 
<a class="el" href="classPyZy_1_1Variant.html#acede29e7fcb4551d91848f449d8da02aa14c89fb716d08d61473716bc2feef4af">TYPE_BOOL</a>, 
<a class="el" href="classPyZy_1_1Variant.html#acede29e7fcb4551d91848f449d8da02aa859398f6805ef16b722dd376669e999c">TYPE_UNSIGNED_INT</a>
 }</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The type contained in the variant.  <a href="classPyZy_1_1Variant.html#acede29e7fcb4551d91848f449d8da02a">More...</a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classPyZy_1_1Variant.html#acede29e7fcb4551d91848f449d8da02a">Type</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPyZy_1_1Variant.html#a8f3013fd08a87b020fbf5796809c7f7e">getType</a> (void) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets a type of the contained value.  <a href="#a8f3013fd08a87b020fbf5796809c7f7e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPyZy_1_1Variant.html#afb1d86d707dd090f0d3f40046046ae66">getBool</a> (void) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets a value as bool.  <a href="#afb1d86d707dd090f0d3f40046046ae66"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPyZy_1_1Variant.html#aa428a5d82b7ed93d611f439df9c7a3fb">getUnsignedInt</a> (void) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets a value as unsigned int.  <a href="#aa428a5d82b7ed93d611f439df9c7a3fb"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classPyZy_1_1Variant.html">Variant</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPyZy_1_1Variant.html#ae2da0df579118b9d93cf3a0b2adebc68">fromBool</a> (bool value)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a <a class="el" href="classPyZy_1_1Variant.html" title="Variant class to handle various type of value.">Variant</a> object from the argument.  <a href="#ae2da0df579118b9d93cf3a0b2adebc68"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classPyZy_1_1Variant.html">Variant</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPyZy_1_1Variant.html#aabb935c8b880be21f36b3269b82de3eb">fromUnsignedInt</a> (unsigned int value)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a <a class="el" href="classPyZy_1_1Variant.html" title="Variant class to handle various type of value.">Variant</a> object from the argument.  <a href="#aabb935c8b880be21f36b3269b82de3eb"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classPyZy_1_1Variant.html">Variant</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPyZy_1_1Variant.html#a36afab014eca2e26e9212dee9a839f42">nullVariant</a> (void)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a null <a class="el" href="classPyZy_1_1Variant.html" title="Variant class to handle various type of value.">Variant</a> object.  <a href="#a36afab014eca2e26e9212dee9a839f42"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p><a class="el" href="classPyZy_1_1Variant.html" title="Variant class to handle various type of value.">Variant</a> class to handle various type of value. </p>
</div><hr/><h2>Member Enumeration Documentation</h2>
<a class="anchor" id="acede29e7fcb4551d91848f449d8da02a"></a><!-- doxytag: member="PyZy::Variant::Type" ref="acede29e7fcb4551d91848f449d8da02a" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classPyZy_1_1Variant.html#acede29e7fcb4551d91848f449d8da02a">PyZy::Variant::Type</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>The type contained in the variant. </p>
<dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" id="acede29e7fcb4551d91848f449d8da02aae64389eb8f198fc7453b6385e6d97677"></a><!-- doxytag: member="TYPE_NULL" ref="acede29e7fcb4551d91848f449d8da02aae64389eb8f198fc7453b6385e6d97677" args="" -->TYPE_NULL</em>&nbsp;</td><td>
<p>null </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="acede29e7fcb4551d91848f449d8da02aa14c89fb716d08d61473716bc2feef4af"></a><!-- doxytag: member="TYPE_BOOL" ref="acede29e7fcb4551d91848f449d8da02aa14c89fb716d08d61473716bc2feef4af" args="" -->TYPE_BOOL</em>&nbsp;</td><td>
<p>boolean value </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="acede29e7fcb4551d91848f449d8da02aa859398f6805ef16b722dd376669e999c"></a><!-- doxytag: member="TYPE_UNSIGNED_INT" ref="acede29e7fcb4551d91848f449d8da02aa859398f6805ef16b722dd376669e999c" args="" -->TYPE_UNSIGNED_INT</em>&nbsp;</td><td>
<p>unsigned int value </p>
</td></tr>
</table>
</dd>
</dl>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="ae2da0df579118b9d93cf3a0b2adebc68"></a><!-- doxytag: member="PyZy::Variant::fromBool" ref="ae2da0df579118b9d93cf3a0b2adebc68" args="(bool value)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classPyZy_1_1Variant.html">Variant</a> <a class="el" href="classPyZy_1_1Variant.html#ae2da0df579118b9d93cf3a0b2adebc68">PyZy::Variant::fromBool</a> </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Creates a <a class="el" href="classPyZy_1_1Variant.html" title="Variant class to handle various type of value.">Variant</a> object from the argument. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">value</td><td>boolean value. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd><a class="el" href="classPyZy_1_1Variant.html" title="Variant class to handle various type of value.">Variant</a> object. </dd></dl>

</div>
</div>
<a class="anchor" id="aabb935c8b880be21f36b3269b82de3eb"></a><!-- doxytag: member="PyZy::Variant::fromUnsignedInt" ref="aabb935c8b880be21f36b3269b82de3eb" args="(unsigned int value)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classPyZy_1_1Variant.html">Variant</a> <a class="el" href="classPyZy_1_1Variant.html#aabb935c8b880be21f36b3269b82de3eb">PyZy::Variant::fromUnsignedInt</a> </td>
          <td>(</td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Creates a <a class="el" href="classPyZy_1_1Variant.html" title="Variant class to handle various type of value.">Variant</a> object from the argument. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">value</td><td>unsigned int value. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd><a class="el" href="classPyZy_1_1Variant.html" title="Variant class to handle various type of value.">Variant</a> object. </dd></dl>

</div>
</div>
<a class="anchor" id="afb1d86d707dd090f0d3f40046046ae66"></a><!-- doxytag: member="PyZy::Variant::getBool" ref="afb1d86d707dd090f0d3f40046046ae66" args="(void) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classPyZy_1_1Variant.html#afb1d86d707dd090f0d3f40046046ae66">PyZy::Variant::getBool</a> </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Gets a value as bool. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>value of the variant as bool.</dd></dl>
<p>This method doesn't check the type. </p>

</div>
</div>
<a class="anchor" id="a8f3013fd08a87b020fbf5796809c7f7e"></a><!-- doxytag: member="PyZy::Variant::getType" ref="a8f3013fd08a87b020fbf5796809c7f7e" args="(void) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classPyZy_1_1Variant.html#acede29e7fcb4551d91848f449d8da02a">Type</a> <a class="el" href="classPyZy_1_1Variant.html#a8f3013fd08a87b020fbf5796809c7f7e">PyZy::Variant::getType</a> </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Gets a type of the contained value. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>type of the contained value. </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classPyZy_1_1Variant.html#acede29e7fcb4551d91848f449d8da02a" title="The type contained in the variant.">Type</a> </dd></dl>

</div>
</div>
<a class="anchor" id="aa428a5d82b7ed93d611f439df9c7a3fb"></a><!-- doxytag: member="PyZy::Variant::getUnsignedInt" ref="aa428a5d82b7ed93d611f439df9c7a3fb" args="(void) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int <a class="el" href="classPyZy_1_1Variant.html#aa428a5d82b7ed93d611f439df9c7a3fb">PyZy::Variant::getUnsignedInt</a> </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Gets a value as unsigned int. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>value of the variant as bool.</dd></dl>
<p>This method doesn't check the type. </p>

</div>
</div>
<a class="anchor" id="a36afab014eca2e26e9212dee9a839f42"></a><!-- doxytag: member="PyZy::Variant::nullVariant" ref="a36afab014eca2e26e9212dee9a839f42" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classPyZy_1_1Variant.html">Variant</a> <a class="el" href="classPyZy_1_1Variant.html#a36afab014eca2e26e9212dee9a839f42">PyZy::Variant::nullVariant</a> </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Creates a null <a class="el" href="classPyZy_1_1Variant.html" title="Variant class to handle various type of value.">Variant</a> object. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd><a class="el" href="classPyZy_1_1Variant.html" title="Variant class to handle various type of value.">Variant</a> object. </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>/home/hsumita/pyzy/src/<a class="el" href="Variant_8h_source.html">Variant.h</a></li>
</ul>
</div><!-- contents -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Wed Aug 1 2012 16:45:23 for pyzy by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
